package com.wang.code;

public class ThreadTestImpl implements Runnable {
	public int num = 50;
	@Override
	public void run() {
		System.out.println("实现类");
	}
	public void sellTicket(){
		if (num > 0) {
			System.out.println(Thread.currentThread().getName()+"当前销售的票："+num--);
		}
	}

}
